package com.base.pig.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjh
 * @since 2022-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WCase对象", description="巡检事件表")
public class WCase implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private BigDecimal id;

    @ApiModelProperty(value = "巡查点名称")
    @TableField("SITE")
    private String site;

    @ApiModelProperty(value = "是否移动端上报")
    @TableField("ISMOBILE")
    private String ismobile;

    @ApiModelProperty(value = "提交时间")
    @TableField("TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    @ApiModelProperty(value = "提交人")
    @TableField("PERSON")
    private String person;

    @ApiModelProperty(value = "状态")
    @TableField("STATUS")
    private String status;

    @ApiModelProperty(value = "类型")
    @TableField("TYPE")
    private String type;

    @ApiModelProperty(value = "时间描述")
    @TableField("DISCRIBE")
    private String discribe;

    @ApiModelProperty(value = "图片编号")
    @TableField("PICTURE")
    private String picture;

    @ApiModelProperty(value = "工单编号")
    @TableField("CASENUM")
    private String casenum;

    @ApiModelProperty(value = "备注")
    @TableField("REMARKS")
    private String remarks;

    @ApiModelProperty(value = "是否展示（0代表展示 1代表不展示）")
    @TableField("ISSHOW")
    private String isshow;

    @ApiModelProperty(value = "经纬度")
    @TableField("POSITION")
    private String position;

    @ApiModelProperty(value = "提交人id")
    @TableField("PERSONID")
    private String personid;


}
